package com.fh.feign;

import com.fh.fallback.OrderCloseClientFallback;
import com.fh.fallback.StatusUpdateClientFallback;
import com.fh.model.Orders;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "order-close",fallback = OrderCloseClientFallback.class)
public interface OrderCloseClient {

    @PutMapping("orderclose/close")
    public  int  close(@RequestParam("orderId") String orderId);

}
